package com.hqyj.repertory.mapper;

import com.hqyj.repertory.model.Repertory;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
@Mapper
public interface RepertoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Repertory record);

    int insertSelective(Repertory record);

    Repertory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Repertory record);

    int updateByPrimaryKey(Repertory record);

    ArrayList<Repertory> queryAllRepertory();

    ArrayList<Repertory> queryRepertoryCondition(int base_number);

    Repertory queryRepertoryByProductMaterialsName(String name);

    Repertory queryAllByName(String tradeName);

    int updateRepertoryByProductName(String productName, Integer productQuantity);

    int updateRepertoryByProductInfo(String productName, Integer productQuantity);
}